package com.example.xxljobdemo.demos.testDemo;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class testDemo {

    @XxlJob("testDemo")
    public void testDemo1(){
        System.out.println("xxl-job任务执行"+ new Date());
    }

}
